<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//1. parseInt和parseFloat函数有什么作用？请举例说明。和数值运算符+的异同点。
			var a = parseInt(1.2);
			console.log(a);
			var b = parseInt(1.2);
			console.log(b);

			var i = 3,
				j = 5;
			document.write(i + j);
			document.write("<br />");

			var x = 3,
				y = 5;
			document.write("" + i + j);
		</script>
	</body>
</html>
